//package com.jyhs.maven.dao.impl;
//
//import com.jyhs.maven.dao.TransferDao;
//import com.jyhs.maven.entity.Transfer;
//import com.jyhs.maven.entity.dto.TransferRecord;
//import com.jyhs.maven.entity.dto.TransferRecordQuery;
//import org.mybatis.spring.SqlSessionTemplate;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.stereotype.Repository;
//
//import java.sql.SQLException;
//import java.text.ParseException;
//import java.util.Collections;
//import java.util.List;
//
//@Repository
//public class TransferDaoSpringMybatisImpl implements TransferDao {
//
//    @Autowired
//    private SqlSessionTemplate sqlSessionTemplate;
//
//    @Override
//    public int saveTransfer(Transfer transfer) throws SQLException, ClassNotFoundException {
//        TransferDao mapper = sqlSessionTemplate.getMapper(TransferDao.class);
//        return mapper.saveTransfer(transfer);
//    }
//    @Override
//    public List<TransferRecord> getTransferListByPayUserId(String payUserId, String receviId) throws SQLException, ClassNotFoundException {
//        TransferDao mapper = sqlSessionTemplate.getMapper(TransferDao.class);
//        return mapper.getTransferListByPayUserId(payUserId, receviId);
//    }
//
//    @Override
//    public List<TransferRecord> getTransferList(TransferRecordQuery query) throws SQLException, ClassNotFoundException, ParseException, IllegalAccessException {
//        TransferDao mapper = sqlSessionTemplate.getMapper(TransferDao.class);
//        return mapper.getTransferList(query);
//    }
//
//    @Override
//    public int getTransferCount(TransferRecordQuery query) throws SQLException, ClassNotFoundException {
//        TransferDao mapper = sqlSessionTemplate.getMapper(TransferDao.class);
//        return mapper.getTransferCount(query);
//    }
//
//    public SqlSessionTemplate getSqlSessionTemplate() {
//        return sqlSessionTemplate;
//    }
//
//    public void setSqlSessionTemplate(SqlSessionTemplate sqlSessionTemplate) {
//        this.sqlSessionTemplate = sqlSessionTemplate;
//    }
//
//
//}
